package com.ruoyi.oms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.utils.ApiResult;
import com.ruoyi.oms.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.oms.entity.OrderItem;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author kenny
 * @since 2021-11-02
 */
public interface IOrderService extends IService<Order> {
    ApiResult<String> createOrder(Order order, List<OrderItem> items);

    Page<Order> selectListByMemberId(Integer pageNum, Integer pageSize, Long memberId);
}
